import{
    movieRequest
} from '../../api'
import {
    GETMOVIELIST
} from '../constant/movieCount'
import store from '../store'


export const getMovieAction =()=>{
    return async ()=>{
        //数据请求
        const re = await movieRequest();
        store.dispatch({
                type:GETMOVIELIST,
                data:re.data.data.list
        })
    }
}